home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
led
/
ledvb25
/
unit1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-01-17
|
1KB
|
71 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Menus, StdCtrls, VBXCtrl, Led25;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
Exit1: TMenuItem;
LED1: TLED;
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Label3: TLabel;
LED3: TLED;
Label4: TLabel;
Label5: TLabel;
LED2: TLED;
procedure Exit1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure Edit1Change(Sender: TObject);
procedure LED3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
S: String[15];
I, Code: Integer;
implementation
{$R *.DFM}
procedure TForm1.Exit1Click(Sender: TObject);
begin
Halt;
end;
procedure TForm1.FormShow(Sender: TObject);
begin
Str(LED3.Value, S);
Edit1.text := S;
end;
procedure TForm1.Edit1Change(Sender: TObject);
begin
Val(Edit1.Text, I, Code);
LED3.value := I;
end;
procedure TForm1.LED3Click(Sender: TObject);
begin
Str(LED3.Value, S);
Edit1.text := S;
end;
end.